package one.stand.mapper;

import one.stand.model.ProductsModel;

import java.util.List;

public interface ProductsMapper {
    int deleteByPrimaryKey(Integer productsId);

    int insertSelective(ProductsModel record);

    ProductsModel selectByPrimaryKey(Integer productsId);

    int updateByPrimaryKeySelective(ProductsModel record);

    int update(ProductsModel record);

    List<ProductsModel> select(ProductsModel record);

    List<ProductsModel> selectList(ProductsModel record);

    /**
     * 获取商品详情
     * @param productsId
     * @return
     */
    ProductsModel getProductsInfo(Integer productsId);

    Integer getMaxSort(Integer companyId);

    ProductsModel getThanProductsType(ProductsModel record);
}